Write few helper functions.

They're dealing with calculating physical addresses of CG's, their inode tables
and the data blocks starts.