Capacity allocation and downstream competition in a supply chain