Mark inode dirty when updated.

This fixes #2514

Signed-off-by: Rohan Puri <rohan.puri15@gmail.com>