The querystring module: nodejs.org/api/querystring.html
Will parse your post data into a structure FOR YOU. From there just write it to your file using "File System" with fs.writeStream.
Assuming you have a server-side .js for node.js that your form is submitting to... you do have that, right?
All you've shown us is client side code, and client side code cannot write to the local filesystem. (well, there is localStorage, but that's different). You want to write to a file, you generally need server-side code... aka what you should have node.js installed for.