You are not going to like this answer but
there is no way to print without the color cartridges in that printer.
There are 2 reasons for this
1. It never prints pure black. It uses small amounts of the other colors to make the black stand out more.
2. It damages the print head to print with no ink going through it.
If you want to print only in black and white there are some printers from canon which have 2 black ink tanks. 1 is used to blend colors and 1 is used for straight text. They use different types of ink. With a printer like that you could get away with printing text for a long time and only having to replace the black ink. With the one you have now you will have to eventually replace the color inks even if you only print in black and white.