Usage of call back function of add_meta_box()

You shouldn’t.

To get the data for the correct post you should be using the $post variable passed to the callback function. This represents the post being edited. Therefore to get the metadata for the correct post you should call get_post_meta() inside the callback function.