Fixing bugs in write path for files that can't be compressed.