The number of IOB's is related to the number of pins you will use. Thus it is determined by the number of input/output signals in the top level module.
The number of pins you will use is a design choice, so either you are asking for too many pins for the chip you're using, or your chip is too small for your design.