When creating a new file using :SudoWrite $filename it is considered to be modified afterwards.
While /tmp/foo is written correctly, Vim considers it to be modified (see :set modified?).
I have tested it using revision 69e6ccd.
Set new created file 'nomodified', fixes issue #12
Try revision de00cdb