implemented writeFile