The Allstate Corporation on Monday announced that it has reached an agreement to sell the majority of its campus in Northfield Township near Northbrook. The agreement with Dermody Properties would be for about $232 million and would close in 2022, according to a company news release.