Adding writeFile logic for "file" plugin

- *writeFile* function takes an additional parameter "data" which will be the written file content.
- *create* parameter has changed to *true*, to allow file creation easily.