Hawks beat the Knicks in pivotal battle