Fixed bug with writing modflow input files