Making people happy

Removed malloc'ing of variable in writeVidModes function.  Added check on fclose since function attempts to continue even if FILE pointer fails.