(io): change the overwrite method when saving with ioAtoms
Description
For now, when overwriting a file we start by deleting it before writing the new file with the same name. This can be a problem if the save fails.
Proposal
We can change this method by saving a temporary file, then delete the file that needs to be overwritten and rename the temporary file with the right name.