added ub_write_log_header_block()