Fix the overflow check for breallocarray

Make sure that we err on the side of failing when division rounds
down.