return type of getFreeBlock() fixed.