write.c: let compaction work on untruncatable files