Fixing Test For Data not fitting in a block

    * Added additional check for data length before writing to block
    * Fixed the "exceedingBlockSizeTest"
Merge pull request #1 from vvenkatr/Fix_BrokenTest_For_DataSizeExceedingBlockSize

Fixing Test For Data not fitting in a block