Fix invalid Write implementation.
* save common implementation * remove zero userid check * Renamed UserId to UInt128 * fix index in hex conversion