BItter gourd ripening before fully grown

Hello Sir,

From past few months I have been trying for balcony Vegetables cultivation . I was able to grow successfully brinjal , tomatoes, and green leaves . But I am not successful with gourds .

I have planted bitter gourd and Ridge gourd . The vine grew well but got dried after sometime . Couldn’t find any properties reas on.

Right now I am facing problem with my bitter gourd . The bitter gourd is ripening when it is very small . I have posted the pics .

Please advise me what can be done .