May has been a regular in the Brentford side since rejoining the West London club on loan for a second time but has only found the net once during his spell at Griffin Park.
Allen told the club's website: "Ben has done very well in the recent success of the team. "He is continuing to improve as a player and I am delighted he has agreed and that Millwall have agreed to this."