fix meta data block writing in transaction