Add ability to write input files

This was useful for [AuxBCs] stuff. I was able to make a script that parsed the file and moved blocks around and then write the file out.
(closes #3174)