calculate inodes allocation.
calculate device size in blocks depending on the file system version