Short answer again: nope
The problem is that you want to be able to write to the "host" (=Kindle) file system from within a WAF application. For security reasons, the WAF framework won't let you do this.
I suggest to write Kindlets instead. With my Kindlet Jailbreak, you can get the full functionality and read/write files, execute programs etc. to your heart's desire.