This depends on your personal fitness goals. If your ultimate goal is quick weight loss, walking on the treadmill is simply not as efficient as running.
Simply put, running burns more calories at a faster rate than walking does. However, walking is easier on the joints and generally safer.
Neither is better than the other – it just depends on your ultimate goals and your overall lifestyle.