add new trunc option to write_file