usb: cdc_acm: Fix write when USB writes only chunk
usb: cdc_acm: Fix write when USB writes only chunk

Current implementation of cdc_acm writes 4 bytes for quark_se at a time
and current code misses remaining data chunks. Make sense to check
written bytes for other platforms as well.

Signed-off-by: Andrei Emeltchenko <a6565233ddc88e4fb9c66c1d70743223493f2ed4@intel.com>

finikorg/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,mbolivar/zephyr,finikorg/zephyr,Vudentz/zephyr,mbolivar/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,explora26/zephyr,ldts/zephyr,mbolivar/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,Vudentz/zephyr,Vudentz/zephyr,Vudentz/zephyr,kraj/zephyr,ldts/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,zephyriot/zephyr,punitvara/zephyr,kraj/zephyr,galak/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,nashif/zephyr,kraj/zephyr,ldts/zephyr,punitvara/zephyr,galak/zephyr,mbolivar/zephyr,zephyriot/zephyr,finikorg/zephyr,punitvara/zephyr,kraj/zephyr,Vudentz/zephyr,punitvara/zephyr,Vudentz/zephyr,nashif/zephyr,nashif/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,explora26/zephyr,mbolivar/zephyr,zephyriot/zephyr,zephyriot/zephyr,explora26/zephyr,zephyriot/zephyr,galak/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr