added convenience method for appending to a file (just like nodejs's fs.appendFile)