United's leading goalscorers both found the net within a 12-minute spell after half-time to seal the Pilgrims' first league victory since October 27.
Walker's sixth of the season set the ball rolling and Allott tucked home his fifth goal of the campaign to wrap up three points for the hosts.
Manager Craig Elliott had named the same XI for a third match in succession for the first time in his tenure and the hosts were almost in front inside two minutes, with visiting keeper Adam Bartlett touching aside Ben Davies’ 25-yard free-kick.
Davies was heavily involved in United’s next chance and he saw his cross fired wide by Liam Agnew, under considerable pressure from York midfielder Kallum Griffiths.
York gradually grew in attacking confidence and ex-Pilgrim Jordan Burrow saw a header drop wide while Adriano Moke cut infield and blasted off target.
Bartlett spectacularly denied Wright at the beginning of the second half, while George Willis did equally as well to keep out Macaulay Langstaff.
The Pilgrims took a 51st minute lead when Wright managed to whiz across a low ball from the right flank and WALKER applied the finishing touch at the back post.
Twelve minutes later, the Pilgrims doubled their advantage with Agnew laying the ball on a plate for ALLOTT to sweep home from close-range.
United expertly closed out the contest although Alex Bray and Kennedy Digie saw good chances go begging in the closing stages, while Burrow missed a glorious chance from four yards to reduce the arrears.
Boston (4-3-3): George Willis; Ben Davies, Ryan Qualter, Spencer Harris, Ashley Jackson; Brad Abbott, Andi Thanoj, Liam Agnew (Jordan Slew 88); Max Wright (Danny Rowe 90), Gavin Allott, Nicky Walker (Jay Rollins 75). Subs (not used): Lewis Gibbens, Sebastian Malkowski (gk).
York (4-1-3-2): Adam Bartlett; Joe Davis, Joe Tait, Kennedy Digie, Sean Newton; Kallum Griffiths; Lewis Hawkins, Alex Harris (Wes York 64), Adriano Moke (Alex Bray 55); Macaulay Langstaff (Joe Ironside 67), Jordan Burrow. Subs (not used): Josh Law, David Ferguson.
Referee: Amy Fearn.
Attendance: 1,143 (108 visitors).