What is the value from the light sensor when you want the motor to stop? Surely not zero?
What is the value from the light sensor when you want the motor to drive at maximum speed?
Put those 2 values into the 2nd and 3rd arguments to the map() function. Adjust as necessary until it runs right.