Fix borrow and carry in IPAllocator
Merge pull request #1885 from thockin/ipalloc

Fix borrow and carry in IPAllocator