Fix for check if data is balanced

Previous check wouldn't make sense, cause the last offset in the data
could be that one that makes data balanced (and j is increased always
after iteration). 

Change-Id: Ie9498d0ac9e3417d09b8b3043bf3281e7dfbf9db
Merge "Fix for check if data is balanced"