Blue Inc has entered an agreement buy most of the remaining shops from collapsed UK denim retailer D2 Jeans.