fix block size calc where requested size bigger than can be produced