fixed find-next-free-block