NULL pointer check when writing block map table