fixed response bug for WriteSingleRegister

The servers response on WriteSingleRegister is the wrong function code, fixed.