fs/smartfs : Fix return code of checkin & block write
fs/smartfs : Fix return code of checkin & block write

Smart_writesector didn't return error even if error happened.
When power cut happened, checkin can be failed, so it should stop
next file operation. Hence add return error.
Also -EINVAL should be returned if crc of checkin data is invalid.

jsdosa/TizenRT,junmin-kim/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,Samsung/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,pillip8282/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,an4967/TizenRT,pillip8282/TizenRT,an4967/TizenRT,an4967/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,Samsung/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,an4967/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT