Bug fix, and addressed PR comments from @mridulm

Fixed bug: getRddId(blockId) returns an Option[Int], which never equals to rddId: Int.