successfully write on file