The purchase comes as the discount retail giant is renovating its corporate headquarters at 770 Cochituate Road in Framingham.