Fixed incorrect fopen flag used during write-section of fileActionHandler. Resolves issue of when said file already exists.