os/fs/smartfs : Apply Recovery logic for commit type
os/fs/smartfs : Apply Recovery logic for commit type

1. Add logic to check crc of written data on data sector
2. Clean some codes.

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