Fair Algorithms for Learning in Allocation Problems