new fully write a file