Update testdisk.c

added test for writing Inodes.