smbd: move printfile_offset() within write_file()