I have moved this from a comment to an answer.
To reiterate MAF is not a format in the classical sense of a novel and complex information structure.
MAF means a tab delimited text format where certain columns have to be present,
hence, the simplest way to modify it is to just read in a tab-delimited, column-based file, modify the column and save it right back with write.table