Surface edge state and half-quantized Hall conductance in topological insulators