fixed overwrite of big file, file_free and dir_remove flag their blocks in the tail segment to be freed