[cvs-nhc98] Fix `writeFile' for tracing, to write to the file, not to