Fixed off-by-one error for findFreeBlocks().