Util/AllocatedGrid: fix reversed comparison operator in loop condition

This loop moves backwards.