gatt: handle write-cmd