Fixed allocator to do allocations per slave rather than per framework.

Review: https://reviews.apache.org/r/24356