test for O_TRUNC, reuses inode