Update os_writeFile() and loader's save_file