I've constructed a scene using OpenGL/GLUT with a spot light but I'm getting troubles with light shining some of the walls
what is going on and how to solve?
Without seeing any shader code and vertex setup, this is difficult to answer. But I suspect that you have winded the quads of the left wall clockwise instead of counterclockwise, or vise versa. Or you didn't specify the normals correctly.