Sam Allardyce says he will sign a new contract once West Ham have reached 38 points in the Premier League.