ext2: inode: add a safety check

Signed-off-by: Levente Kurusa <levex@linux.com>