Fix issue where a block sized entry fails when written after a file entry