You should be ok, on the ESTA page just select yes when asked about controlled substances, at the end you will have a chance to list the date and where the offence occurred.
If it comes back as being refused, the next option is applying for a tourist visa which will involve more paperwork and a interview at your local US consulate plus a $160 fee.