fs: Only flush a file if it is dirty
fs: Only flush a file if it is dirty

Be careful to have file remain dirty if writes occur between
marshaling contents and setting clean.

This avoids ticking the logical clock on read-only operations.

lisael/bazil,bazil/bazil