It's a bad idea to overwrite SD files. If edited blocks were appended with block number to an edit file, only the last copy of any edit record gets used. When the user does a save, a new full file gets written and when that gets edited, a new edit file is made.
There's SPI RAM to use as well. Pour the data in, edit, pour it back out.