Warwickshire fell to just their second defeat of the season, as Essex came on top with a nine-wicket victory at Chelmsford.