Fixed chunk number calculation.

See JIRA ticket. Tested in Windows and MAC. Fixes a test in Drive that was consistently failing in Windows.
This test needs to be renamed to `TEST_F(BasicTest, FUNC_ReadAfterClose) {` to comply with our naming conventions for tests and to avoid a CMake warning.