Check your rule book on wheel size.
I would think a KX 100 would be probably the smallest you could get the wheel size and appropriate rubber on. Depending on your height it would be a ride able bike with some mods (I'm 6 foot and have ridden a friends nephews bike, it was ride able but a bit of "clown on a little bike" look to it)
Cheap bikes used though, kids outgrowing and growing tired of them all the time.
I would buy the motor and put it in another frame if it were me though.