Use FS.writeFile() instead of QFS.write() in util/writeFile
Use FS.writeFile() instead of QFS.write() in util/writeFile