gatt: Use correct GATT write operation based on characteristic properties