Just guessing, but if you have the file (or a file with the same name) open in mach3 and try to write to it at the same time you get that error. Try changing the file name or closing it in mach3 if that's the case.