Update mapfile.c

There has a bug in line 668 and 670. we should replace fprintf with msIO_fprintf. if not, the result will print to stdout in python mapscript.